package com.adcc.ags.msgStore.common;

/**
 * 常量类
 */
public class Constant {
    //数据库尝试连接次数
    public static final int RETRYATTEMPTS = 2;
    // 获取连接超时时间
    public static final int CONNECTIONTIMEOUT = 200;
    // 登录连接时间
    public static final int LOGINTIMEOUT = 200;

    // The target database table name
    public static final String TRAFFIC_TABLE_NAME="\"T_TRAFFIC\"";
    public static final String TRAFFIC_ID_KEY ="ID";
    public static final String TRAFFIC_SEQUENCE_KEY = "SEQ_TRAFFIC.NEXTVAL";

    //message split
    public static final int MESSAGE_SPLIT = 4000;
    public static final String ERROR_CODE_KEY = "error";
    public static final String IS_EXIT_KEY = "isExit";

    // 消息传递过程中相关属性值
    public static final String TRAFFIC_MESSAGE_TYPE="type";
    public static final String TRAFFIC_MESSAGE_ERROR_CODE="errorCode";
    public static final String TRAFFIC_MESSAGE_ERROR_USER="errorUser";
    public static final String TRAFFIC_MESSAGE_FLAG="flag";
    public static final String TRAFFIC_MESSAGE_MSG_ID="msgId";
    public static final String TRAFFIC_MESSAGE_RECEIVER="receiver";
    public static final String TRAFFIC_MESSAGE_SENDER="sender";
    public static final String TRAFFIC_MESSAGE_SAVE="0";
    public static final String TRAFFIC_MESSAGE_UPDATE="1";
    public static final int TRAFFIC_MESSAGE_BIG_DATA_SIZE = 64*1024;

    public static final String TRAFFIC_MESSAGE_RECEIVER_NULL = "null";
}
